-- GENERATED SPELL FOR [Ymirjar Savage] --


function spell0_26669(pUnit, Event) --@Beast\'s Mark,n/a--
pUnit:FullCastSpellOnTarget(48876,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26669', 10252, 1)
end

function spell1_26669(pUnit, Event) --@Beast\'s Mark,n/a--
pUnit:FullCastSpellOnTarget(59237,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26669', 10258, 1)
end

function spell2_26669(pUnit, Event) --@Rend,n/a--
pUnit:FullCastSpellOnTarget(48880,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26669', 10000, 1)
end

function spell3_26669(pUnit, Event) --@Rend,n/a--
pUnit:FullCastSpellOnTarget(59239,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26669', 10000, 1)
end

function Sorts_26669(pUnit, Event)
local choix_sorts_26669 = math.random(0, 3)
if choix_sorts_26669 == 0 then
pUnit:RegisterEvent('spell0_26669', 1, 1)
end
if choix_sorts_26669 == 1 then
pUnit:RegisterEvent('spell1_26669', 1, 1)
end
if choix_sorts_26669 == 2 then
pUnit:RegisterEvent('spell2_26669', 1, 1)
end
if choix_sorts_26669 == 3 then
pUnit:RegisterEvent('spell3_26669', 1, 1)
end
end

function mob26669_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_26669', math.random(1500, 3000), 1)
end

function mob26669_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26669_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26669_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(26669, 1, 'mob26669_Action')
RegisterUnitEvent(26669, 2, 'mob26669_Leave')
RegisterUnitEvent(26669, 3, 'mob26669_Kill')
RegisterUnitEvent(26669, 4, 'mob26669_Die')
